package com.jason.item.service;

import com.jason.common.error.BusinessException;
import com.jason.item.model.OrderModel;
import com.jason.item.model.ItemModel;

import java.util.List;

public interface ItemService {

    // 创建商品
    ItemModel createItem(ItemModel itemModel);

    // 浏览商品列表
    List<ItemModel> listItem();

    // 浏览商品详情
    ItemModel getItemById(Integer id);

    /**
     * 下单
     */
    Boolean buyItem(OrderModel orderModel) throws BusinessException;

}
